realtek: pcs: make use of SerDes struct in SerDes setup
authorJonas Jelonek <[email protected]>
Thu, 11 Dec 2025 21:42:38 +0000 (21:42 +0000)
committerRobert Marko <[email protected]>
Tue, 16 Dec 2025 12:37:32 +0000 (13:37 +0100)
commit1fccb0eb1636ad7c417a14c55e766cd97e875015
tree266ccd9b78ca2fd328f250f78bd2351fbef0a5fb
parent4d9400f86bea9ea5587d920eb78b9825d796ea95
realtek: pcs: make use of SerDes struct in SerDes setup

Make use of the previously added SerDes struct in SerDes setup and all
functions in its call path by removing (ctrl, sds_num) being passed to
every function call and instead just pass the reference to the
corresponding SerDes instance.

Various SerDes calculations for even, odd and neighbor are unified by
switching to previously introduced helpers.

Signed-off-by: Jonas Jelonek <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/21146
Signed-off-by: Robert Marko <[email protected]>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c